package jrain.fw.script.operator;

import jrain.fw.script.tools.ELException;
import jrain.fw.script.tools.Logger;

//二元操作
public abstract class BinaryOperator {

	public BinaryOperator() {
	}

	public abstract String getOperatorSymbol();

	public abstract Object apply(Object pLeft, Object pRight, Object pContext, Logger pLogger) throws ELException;

	public boolean shouldEvaluate(Object pLeft) {
		return true;
	}

	public boolean shouldCoerceToBoolean() {
		return false;
	}

}
